/**
 * 
 */
package gui;

import java.awt.Color;
import java.awt.GridBagConstraints;

import javax.swing.*;
import java.awt.*;

/**
 * @author Chris
 *
 */
public class ClassInfo extends JPanel {
	public String Description;
	public int credits;
	public int difficulty;
	
	public ClassInfo() {
		this.Description = "";
		this.credits = 0;
		this.difficulty = 0;
		this.setBackground(Color.MAGENTA);
		JLabel jlTitle = new JLabel("ClassInfo");
		JLabel jlDescription = new JLabel("Description");
		JLabel jlCredits = new JLabel("Credits");
		JLabel jlDifficulty = new JLabel("Difficulty");
		GridBagLayout gbl = new GridBagLayout();
		this.setLayout(gbl);
		GridBagConstraints gbc = new GridBagConstraints();
		
		gbc.gridx = 0;
		gbc.gridy = 0; 
		gbc.gridwidth = 2; 
		gbc.gridheight = 1; 
		gbc.weightx = 100; 
		gbc.weighty = 10; 
		gbc.fill = GridBagConstraints.NONE; 
		gbc.anchor = GridBagConstraints.CENTER; 
		gbl.setConstraints(jlTitle, gbc);
		this.add(jlTitle);
		
		gbc.gridx = 0;
		gbc.gridy = 1; 
		gbc.gridwidth = 1; 
		gbc.gridheight = 1; 
		gbc.weightx = 50; 
		gbc.weighty = 10; 
		gbc.fill = GridBagConstraints.HORIZONTAL; 
		gbc.anchor = GridBagConstraints.LINE_START; 
		gbl.setConstraints(jlDescription, gbc);
		this.add(jlDescription);
		
		JLabel jlDESC = new JLabel(this.Description);
		gbc.gridx = 0;
		gbc.gridy = 2; 
		gbc.gridwidth = 2; 
		gbc.gridheight = 1; 
		gbc.weightx = 100; 
		gbc.weighty = 50; 
		gbc.fill = GridBagConstraints.HORIZONTAL; 
		gbc.anchor = GridBagConstraints.LINE_START; 
		gbl.setConstraints(jlDESC, gbc);
		this.add(jlDESC);
		
		gbc.gridx = 0;
		gbc.gridy = 3; 
		gbc.gridwidth = 1; 
		gbc.gridheight = 1; 
		gbc.weightx = 50; 
		gbc.weighty = 10; 
		gbc.fill = GridBagConstraints.HORIZONTAL; 
		gbc.anchor = GridBagConstraints.LINE_START; 
		gbl.setConstraints(jlCredits, gbc);
		this.add(jlCredits);
		
		JLabel jlCRED = new JLabel("0" + this.credits);
		gbc.gridx = 1;
		gbc.gridy = 3; 
		gbc.gridwidth = 1; 
		gbc.gridheight = 1; 
		gbc.weightx = 50; 
		gbc.weighty = 10; 
		gbc.fill = GridBagConstraints.HORIZONTAL; 
		gbc.anchor = GridBagConstraints.LINE_START; 
		gbl.setConstraints(jlCRED, gbc);
		this.add(jlCRED);
		
		gbc.gridx = 0;
		gbc.gridy = 4; 
		gbc.gridwidth = 1; 
		gbc.gridheight = 1; 
		gbc.weightx = 50; 
		gbc.weighty = 10; 
		gbc.fill = GridBagConstraints.HORIZONTAL; 
		gbc.anchor = GridBagConstraints.LINE_START; 
		gbl.setConstraints(jlDifficulty, gbc);
		this.add(jlDifficulty);
		
		JLabel jlDIFF = new JLabel("0" + this.difficulty);
		gbc.gridx = 1;
		gbc.gridy = 4; 
		gbc.gridwidth = 1; 
		gbc.gridheight = 1; 
		gbc.weightx = 50; 
		gbc.weighty = 10; 
		gbc.fill = GridBagConstraints.HORIZONTAL; 
		gbc.anchor = GridBagConstraints.LINE_START; 
		gbl.setConstraints(jlDIFF, gbc);
		this.add(jlDIFF);
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
